package com.example.orderService.client;


import com.example.orderService.model.Users;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("user-service")
@Component
public interface UsersClient {
    //定义要调用的方法的路径
    @GetMapping("/users/getById")
    public Users getById(@RequestParam Long id);
}
